const state = {
    pics: [],
    videos: []
}
const actions = {
    getIndexPics: ({ commit }, payload) => {
        commit('GETPICS', payload)
    },
    getVideos: ({ commit }, payload) => {
        commit('GETVIDEOS', payload)
    }
}
const mutations = {
    GETPICS: (state, payload) => {
        state.pics = payload
    },
    GETVIDEOS: (state, payload) => {
        state.videos = payload
    }
}

export default {
    state,
    actions,
    mutations
}